package com.zm.campus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zm.campus.pojo.RespBean;
import com.zm.campus.pojo.User;
import com.zm.campus.vo.LoginVo;
import com.zm.campus.vo.RegisterVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;

public interface LoginService extends IService<User> {

    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    //更新密码
    RespBean updatePasssword(String userTicket,HttpServletRequest request, HttpServletResponse response);

    //注册
    RespBean register(RegisterVo registerVo);

    //退出登录
    RespBean loginOut(String userId,HttpServletResponse response,HttpServletRequest request);

    //获取所有学校列表
    RespBean getSchoolList(String userId);

    RespBean getUserSalt(String userId) throws UnsupportedEncodingException;

    RespBean getLoginAvatar(String userId);
}
